<?php

class Front_Bootstrap extends Zend_Application_Bootstrap_Bootstrap {

    protected $_name = "front";

    public function _initAcl() {
        // ACL
        $registry = Zend_Registry::getInstance();
        $acl = $registry->get('acl');
        $this->initIndexAcl($acl);
    }

    private function initIndexAcl($acl) {
        // Resource
        $resource = $this->_name . ':index';
        $acl->addResource($resource);
        
        // Roles
        $guest = array(
            'index', 'club', 'today'
        );
        $user = array(
        );        
        $acl->allow(Core_Role::ROLE_GUEST, $resource, $guest);
        $acl->allow(Core_Role::ROLE_USER, $resource, $user);
    }
    
    public function _initPath() {
    }
}